-- Returns the formated string for entered value
-- Looks for p_string has only characters from charset