refactors citation logic, now ignores punctuation