p2 checking for strings in input