Add function that changes input from String to Int