replace trim() with regex
remove global flag -- not needed
respond to comments
found a few more...
fix rte and error found during self check
rtc: trim in _getSelectorName
fix lastindexof search regex
respond to comments -- remove optimizations for between classes case. Add unit test for between classes and multiple classes cases
Merge pull request #7439 from adobe/jeff/untrim

replace trim() with regex