Replace whitespace table with simple switch