Added Unit Test for Substring