Add bool caseSensitive in value function