Fixed two bugs

Fixed two bugs related to parsing ...

1.) BibTeX records with a whitespace before the citation key crashed the
parser
2.) There was a typo in the whitespace removal procedure which could
lead to a truncation of characters