startsWith(): Checks if a string starts with the specified characters
endsWith(): Checks if a string ends with the specified characters
Both methods return true or false based on the match.