syntax correction

removed incorrect semicolons from pasted code. The trim mode works fine
now.