completed the endsWidth method.. but did not test yet.
completed the methods: indexOf, lastIndexOf, startsWith, endsWith