How to get enum from raw value in Swift? : <p>I'm trying to get enum type from raw value:</p>

<pre><code>enum TestEnum: String {
    case Name
    case Gender
    case Birth

    var rawValue: String {
        switch self {
        case .Name: return "Name"
        case .Gender: return "Gender"
        case .Birth: return "Birth Day"
        }
    }
}

let name = TestEnum(rawValue: "Name")       //Name
let gender = TestEnum(rawValue: "Gender")   //Gender
</code></pre>

<p>But it seems that <code>rawValue</code> doesn't work for string with spaces:</p>

<pre><code>let birth = TestEnum(rawValue: "Birth Day") //nil
</code></pre>

<p>Any suggestions how to get it?</p>
