#449 Refectored update config methods

Please, review.
It is better to use Integer.toString(12345)