using cin.peek() to read string