toTypingState

Converts a string to a TypingState.