fix

forgot a test

whitespace formatting

some more nitpick fixes

one more consistency test

spelling

starting -> ending
Merge pull request #1330 from burner/lastIndexOf

lastIndexOf width startIdx