Simple program to remove end of line whitespaces