Use the quoteChars array to see if the requested mode is valid