how to define a serial inputString

You need to use the String::toCharArray() method to extract the data from the String (which you probably shouldn't be using on the first place).