Strip trailing newline from strings

Don't know why it ends up there all the time, but it does...