fixed and renamed str_matches