string input update

input statements changed to take whole input (instead of a single word)