Fixed the way to set value in fields to support events properly
Switched the building of backspaces to use str_repeat

From a quick benchmark, str_repeat is 1000 times faster than doing a for
loop concatenating the string.
Merge pull request #146 from stof/change_event

Fixed the way to set value in fields to support events properly