Added new routine to get string data from the user and validate it