We provide a formulation of the Cauchy problem in a strip for a two-dimensional hyperbolic equation containing a superposition of a differential operator and a shift operator with respect to the spatial variable varying along the entire real axis. The solution of the problem using integral Fourier transforms is constructed in explicit form.