Moving character() to str_trim rather than check_string, was breaking str_match and str_detect special cases