adds trim() to OOC and LOOC
Merge pull request #5705 from Walter0o/ooc_trim

adds trim() to OOC and LOOC