tranform string into int by input box.