Refactored BsonString and added tests.