Support len(string) without object layer