Trim keys in annotations