detect if string is integer