Treat string variables as factors