Added replacing escaped non-breaking space after WikiMedia parser call
Extracted string parsing to a function and added unit tests