homework 3 remove '\n'