replace line endings with <br> in strings