getName function

Generic function to get the names of sequences