check if a string is end with some string