Make format flag case insensitive