Added getinputstring method