Unique Trims example
Add input preprocessing functionality