Make sure keys and values are lowercase