Text this: Understanding the oscillations of an epidemic due to vaccine hesitancy