removing trailing slash when shortening strings to conform to Splunk's max length