rework algorithm to better handle & and other punctuation in apparatus