String (@NotNull String text) { // filter terminal escape codes - they are presented in the output for windows platform text = text.replaceAll(CSI_ESCAPE_CODE, "").replaceAll(NON_CSI_ESCAPE_CODE, ""); // trim leading '\r' symbols - as they break xml parsing logic text = StringUtil.trimLeading(text, '\r'); return text; }