Started algorithm for converting string to token for case statement