fixed person3.java error

replaced variable string with input