Changed switch case from string to char