Remove extra space character
Add contains() function to check whether a substring is found in given string

Unit tests were adapted and extended from unit tests of startsWith()
and endsWith() in the same project.