Fix documentation for trimLeft and trimRight in readme.
Reformat composer.json.
Fix substring calculation in startsWith and endsWith.
Fix missing and incorrect encoding in substring.
Fix lost character in insert.
Fix missing encoding handling in setLength.
Add unit test.