Gets the current length of the string.

import {StringBuilder} from "nativescript-stringformat";

// 2
var len = new StringBuilder("TM").length;