Switched the building of backspaces to use str_repeat

From a quick benchmark, str_repeat is 10000 times faster than doing a for
loop concatenating the string.