convert input to string