update inputString to accept comma as valid character