As user1104 commented, you use Euler's identity:
$$ e^{ix} = cos(x) + i \space sin(x) $$
so:
$$ sin(kx-wt) = \frac{ e^{i(kx-wt)} - e^{-i(kx-wt)}}{2i} $$
But we wouldn't normally procede by replacing sin by this expression. Both the sin form and the exponential form are mathematically valid solutions to the wave equation, so the only question is their physical validity. In QM we don't worry about having a complex solution because the observable is the squared modulus, which is always real.
For a guitar string obviously the complex form isn't physically valid, but any sum of solutions to the wave equation is also a solution to the wave equation. That's why we can add (or subtract) the complex solutions to get a real solution.
Response to comment:
$$ e^{ix} = cos(x) + i \space sin(x) $$
so replacing $x$ by $-x$ gives:
$$
\begin{split}
e^{-ix} &= cos(-x) + i \space sin(-x)\\
&= cos(x) - i \space sin(x)
\end{split}
$$
because $cos(x) = cos(-x)$ and $sin(x) = -sin(-x)$. So subtracting $e^{-ix}$ from $e^{ix}$ gives:
$$
\begin{split}
e^{ix} - e^{-ix} &= cos(x) + i \space sin(x) - cos(x) + i \space sin(x)\\
&= 2i \space sin(x)
\end{split}
$$
therefore:
$$ \frac{e^{ix} - e^{-ix}}{2i} = sin(x) $$