I am trying to prove that $$G(t-t')=\frac i{2w}e^{-iw|t-t'|}$$ satisfies $$\left(\frac{\partial^2}{\partial t^2}+w^2\right)G(t-t')=\delta(t-t').$$ (Problem 7.2 from Quantum Field Theory by Mark Srednicki.)
Using the fact that $\frac{\partial}{\partial t}|t-t'|=sgn(t)$ and $\frac{\partial}{\partial t}sgn(t)=2\delta(t)$, I was able to show that $$\frac{\partial^2}{\partial t^2}G(t-t')=-w^2G(t-t')+e^{-iw|t-t'|}\delta(t).$$ However, I don't see how to get rid of the exponential in front of the delta-function to prove the identity. I would appreciate any help.