EmberAPI\clsAPIStringUtils

Numerous changes:
- Method documentation
- Unit tests written
- Parameter checking
- Bug-fixes revealed from unit testing

(note this is a re-commit since I had to revert to remove an unrelated
change)