def parse_string(val):
    val = str(val)
    if ':' in val:
        raise ValueError(
            "invalid value for string ('%s'), ':' is not allowed" % val)
    return val.strip()
Generic string type with no special powers.
dataset/ETHPy150Open practo/r5d4/r5d4/mapping_functions.py/parse_string