def is_int(string):
try:<EOL><INDENT>a = float(string)<EOL>b = int(a)<EOL><DEDENT>except ValueError:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return a == b<EOL><DEDENT>
Checks if a string is an integer. If the string value is an integer
return True, otherwise return False. 

Args:
    string: a string to test.

Returns: 
    boolean