get rid of strEndsWith