Added a length getter for Text