Add support for length and substring methods on strings