How to properly replace NSTextView’s string when used with bindings I have issues with string replacement when there are newlines.