remove superfluous characters that cause error if entered verbatim