Generalize species name extraction from trait matrix