Remove unnecessary line breaks in strings.