How to make function which can read an argument without any gap or comma?

Yes i am using sum for this purpose only, i just want your help to tell me how can i make a program for ABCDEF type of input or argument without any gap or commas. I want to make an argument in string not in character, so please guid me in this. Thankyou