def guess_string_format(string):
    """Guess if a string represents an integer, a float or a string."""
    try:
        _ = int(string)
        return int
    except ValueError:
        try:
            _ = float(string)
            return float
        except ValueError:
            return str