I have a string called message, right now the message will be "Hello please press +enter to join our chat room"

```
let message = msg.toString()

```

the value before enter in this case + will always be different. My goal is, to extract the + before the enter.

My attempt was the following:

```
let position = message.search("enter")
let prefixlocation = position -1 
let prefixlocation2= position -3
let prefix = message.slice(prefixlocation, prefixlocation2)
console.log(prefix)

```

If anyone could help me it would be greatly appreciate it. Also if you have a quciker more convienient solution