ensure output is string