Restrict transform_to system to be a string and do transform correctly