using regex to detect and remove mutable parts from stacktrace