Remote socket (int Help)

All the examples on that page show that the first argument to the switchOff() method is a string. You are calling the method with an int. Why?

Post ALL of your code. We can not see how inputString is defined. If it is an array of characters, then is is easy to do what you want.