Checks if a given string represents an integer.
True if the string is an integer, false otherwise.
The string to check.