Introduction
This helps you cut off the ending part of a word or sentence stored in a variable. It is useful when you want to remove a known ending.
You have a filename with extension and want just the name without the extension.
You want to remove a trailing slash from a folder path.
You want to get the base name from a URL by removing the last part.
You want to clean up user input by removing a known suffix.