Removes the last suffix (including the last dot) from a filename. If no dot exists, the full string is returned.
Useful links