Component for checking the last characters of a string.