BUGFIX: When the number of values where more than 10 there was an error in the replacement

Now the replacement is done with a regular expression that allows to check the whole reference