standardize read ids before printing bam file

In order to pass bam validation, read ids of mates must be the same. Added a function to:
* split read id on white space and take only the first item
* remove trailing /1 and /2 from paired end read ids