 
     display_success : ->
         if @props.forgot_password_success?
-            success_part_1 = @props.forgot_password_success.split("check your spam folder")[0]
-            success_part_2 = @props.forgot_password_success.split("check your spam folder")[1]
+            s = @props.forgot_password_success.split("check your spam folder").split()
             <span>
-                {success_part_1}
+                {s[0]}
                 <span style={color: "red", fontWeight: "bold"}>
                     check your spam folder
                 </span>
-                {success_part_2}
+                {s[1]}
             </span>
 
     hide_forgot_password : ->


    forgot_password : (e) ->
        e.preventDefault()
        value = ReactDOM.findDOMNode(@refs.email).value
        if @is_valid_email(value)
            @props.actions.forgot_password(value)

    set_email : (evt) ->

                    <FormGroup>
                        <FormControl ref='email' type='email' placeholder='Email address' autoFocus={true} onChange={@set_email} />
                    </FormGroup>
                    {if @props.forgot_password_error then @display_error() else @display_success()}
                    <hr />
                    Not working? Email us at <HelpEmailLink />
                    <Row>
                        <div style={textAlign: "right", paddingRight : 15}>
                            <Button disabled={not @state.is_email_valid} type="submit" bsStyle="primary" style={marginRight : 10}>Reset Password</Button>
                            <Button onClick={@hide_forgot_password}>Close</Button>
                        </div>
                    </Row>
                </form>
