The method you are quoting refers to NSMutableString . But since you use Swift and have not explicitly created it, you get Swift String.
If you want to work with Swift String, you need to use str.removeRangeand it is rather inconvenient to use Range:
var str = "Hello, playground"
str.removeRange(Range<String.Index>(start: str.startIndex, end:advance(str.startIndex, 7)))