**Tell us what's happening:**
Describe your issue in detail here.
Hi guys please why exactly are my not passing this challenge
**Your code so far**
```js
function myReplace(str, before, after) {
if (before[0] === before[0].toUpperCase()) {
after = after.replace(after[0], after[0].toUpperCase());
}
return str.replace(before, after);
}
console.log(myReplace("A quick brown fox jumped over the lazy dog", "jumped", "leaped"));
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Challenge: Search and Replace
Link to the challenge: