Vishal #0 fixing trim function