New algorithm to replace text by smileys
Now the smileys will replaced correctly. The replacing is now independent from the position in the smileyshash.