A new string method for deciding if we are in a citation command. A bit smarter than the previous way. Also added unit tests for this.