Q:

Replacing each letter of the alphabet in a string?

That's what I've written so far:
string omgwut;
omgwut = textBox1.Text;
omgwut = omgwut.Replace(" ", "snd\\space.wav");
omgwut = omgwut.Replace("a", "snd\\a.wav");

Now, the problem is that this code would turn 
"snd\space.wav"

into 
"snd\spsnd\a.wavce.wsnd\a.wavv"

in line four. Not what I'd want! Now I know I'm not good at C#, so that's why I'm asking.
Solutions would be great! Thanks!

A:

You'll still need to write the getSoundForChar() function, but this should do what you're asking.  I'm not sure, though, that what you're asking will do what you want, i.e., play the sound for the associated character.  You might be better off putting them in a List<string> for that.
StringBuilder builder = new StringBuilder();
foreach (char c in textBox1.Text)
{
    string sound = getSoundForChar( c );
    builder.Append( sound );
}
string omgwut = builder.ToString();

Here's a start:
public string getSoundForChar( char c )
{
     string sound = null;
     if (sound == " ")
     {
         sound = "snd\\space.wav";
     }
     ... handle other special characters
     else
     {
         sound = string.Format( "snd\\{0}.wav", c );
     }
     return sound;
}

