Text this: Optimized Wideband Beamforming for mm-wave Communication Systems with Intelligent Reflecting Surfaces