fix processing of a string