Cuts string from a larger one based on a specific separator.
Gets the extension of file from its filename
50 chars max.