fixed str_ends_with