changed input handling and character checking