fixes #4436 filter results in empty string if string to truncate contains the regex limiter "/"