Minor improvement to note parsing