added Trim Operation
Code Cleanups