correct string parsing