use the StartsWith() and EndsWith() methods to check if a string contains a specified substring at the start and end