use the IndexOf() and LastIndexOf() methods to search for substrings and characters;