def _is_number( strg ):
    """
    
    Helper function which determines whether the given string parameter
    contains a valid number. Returns True if the string is a number and
    False otherwise.
    
    """
    try:
        isitanumber = float( strg )
        return True
    except (ValueError, TypeError):
        return False