transform

Transform a string according to the configured mode.