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.