connect middleware for injecting string to the response