Add functions to calc cursor string size