adding appendNewLine test method in StringUtilTest class