Fixed trimDot.
Merge pull request #879 from yanoosh/trim-fix

Fixed trimDot.