Small speedups

stringByReplacingCharactersInRang faster than
stringByReplacingOccurrencesOfString