I would like to convert a string to an array of token through user input.
The pattern of the expression is that it starts and end with bracket and cannot contain any lett