change mode string to Lisp