Trying to fix unexpected newline problem