removed gsub for newline characters