'Applies set of transformations to a string.
Arguments:
- string: source string; if None, then no processing will
take place.
- transforms: iterable that returns transformation function
on each turn.
Returns transformed string.'

def apply_xforms(self, string, transforms):

    if (string == None):
        return None
    for f in transforms:
        string = f(string)
    return string
