Fixed case function to work with example