Working out methods for figuring out length of string that has control characters