How to add or change value for a declared string using string(int char) function