 		return ret
 	}
 	
-	func substringTo(index: String.Index) -> String {
+	public func substringTo(index: String.Index) -> String {
 		var s = ""
 		var idx = self.startIndex
 		let endIdx = self.endIndex


extension String {
	
	func stringByReplacingString(find: String, withString: String) -> String {
		
		guard !find.isEmpty else {
			return self

		return s
	}
	
	public func substringWith(range: Range<String.Index>) -> String {
		var s = ""
		var idx = range.startIndex
		let endIdx = self.endIndex
