added newline support in Text object