Applies a transform to an input string and calls back with result, mostly useful for testing transforms