Text typed by people is messy: stray spaces, random capitals, the same place written three ways. Until it is cleaned, "Pier 3", " Pier 3" and "PIER 3" count as three stations.
stringr's functions all start with str_ and take the text first. str_squish() trims both ends and collapses double spaces; str_trim() only trims the ends. str_to_title(), str_to_lower() and str_to_upper() fix capitals.
To search, str_detect(x, "^ELC") is TRUE where the text matches a pattern; ^ means "starts with" and $ "ends with". str_sub(x, 5, 5) takes characters by position, str_remove(x, ".*@") deletes what a pattern matches, and str_replace() swaps it for something else.
Tidy spaces, fix capitals, test a pattern, and strip the part before the @.