def convert(x):
    """
    Converts string to int, float or leaves  it as a string
    :param x:
    :return:
    """

    try:
        return int(x)
    except ValueError:
        try:
            return float(x)
        except ValueError:
            return x