remove spaces from anchor strings, since IE9 has a problem with them