reformat function for renameFastaHeaders.pl