String Concatentation
<p>I have the following code and the return is confusing me. I am new to java and not exactly sure why it is returning the way it is. Any help would be great.</p>

<p>When the data has <code>PE846</code> and <code>A846</code> it returns <code>engine</code>, <code>ambo</code> and <code>engineambo</code>.  I'm looking to return only <code>engineambo</code>.</p>

<pre><code>    String soundString = "";

    if (data.contains("PE846")) {
        soundString += "engine";
        betaString = "Engine : ";
        sign = engine;
    }
    if (data.contains("A846")) {
        soundString += "ambo";
        betaString += "Ambo : ";
        sign = ambo;
    }
    if (data.contains("MD846")) {
        soundString += "medic";
        betaString += "Medic";
        sign = medic;
    }

    log.info(betaString + " Alerted");

    {
        new AudioPlayer("sounds/" + soundString + ".wav").start();
        log.info(soundString);
    }   
</code></pre>
