break string.to_s and gsub into separate lines