v6

added .trim() to the end of each line where input is taken in