Update should add the identifier last

As it's needed for the WHERE Id = ?
Replace regular expression with substring