fix sanitizing check, and ending quote in annotate