Fixed up some bugs with the variations of 'StartsWith' and 'EndsWith'.