Strip newlines from input, xboard works again

Closes #5 .