changed string conversion technique in processInput()