Update MongoConfig.java

Added comments to explain string parsing