(you would want to order the if's by expected frequency - separator then whitespace then terminator then quote, I suppose.)