extracted function for validating the input strings
added startsWith functionality
extracted function for lowercasing indexof
added endswith functionality for strings
Merge pull request #7 from lxanders/add-startswith-and-endswith

Add startsWith and endsWith functions for stringUtil - this fixes issue #6