[FIX] fixed regression bug and replaced copy’n’paste cases

... in  in extractTagValue() and _toBamTagValue()