Instead of trying to match the value against the exact value you need match against what you can do is use a property like is kind of how to find if your still newish to JavaScript which is defaultValue, basically this property stores the initial value of the input field allowing you to match it again something else.
See the below:
HTML Code:
<input onblur="if (!this.value.length) this.value = this.defaultValue;" onfocus="if (this.value === this.defaultValue) this.value = '';" value="your friend's name" />
Bookmarks