in reply to manipulating string

Knowing nothing about Bioperl, you could take the following approach See how far that takes you along the path and let us know if you're stuck, no need to apologise we like to help.