fix newlines and espaced single quotes