## If you need to search a string for any of these characters, you can use the option fixed=TRUE. grepl("^", gender, fixed = TRUE)