code: public static String replaceWithVisibleWhiteSpaceChars(String string) {
          return string.replaceAll("\r", CARRIAGE_RETURN_SYMBOL)
                  .replaceAll("\n", LINE_FEED_SYMBOL)
                  .replaceAll("\\t", TAB_SYMBOL)
                  .replaceAll(" ", SPACE_SYMBOL);
      }
docs: Returns a string with visible whitespace characters, removing the invisible ones.
  <p>
  It's replaced carriage return, line feed, tabs and spaces with visible (replacement) characters.
  
  @param string the source string
  @return the new string with visible new line characters