Make input stop on newline; Fix spelling