corrected new line charatcer without using internal API