add guard support
get 0 when input is empty
return number if there is only one number in string
refactoring