Added functions to test if trailing string matches input
Need to account for more test cases, in which input is multiople words
Added new implementation that takes account for multi words
Added more broad function to account for partial matches