make ref-stats command case insensitive