Convert Filename-Tag but truncate characters

couldn't you give a real example?
You don't say what

Otherwise: please use the search function as there are numerous threads that deal with this problem. "cut" and "delete" would be suitable search words,
e.g