Swift String extensions: length, substring(location, length)