fixed the case statement with strings