avoid calling gsub for nil for add_input_transformer_custom