         }
         return str
     }
-
+    
     // Get substring starting at 0 to index (same as "substrTo()")
     public func left(toIndex: Int) -> String {
         return self[0, toIndex]

    public func startswith(target: String) -> Bool {
        return target == self.left(target.length)
    }

    // Check to see if a string ends with "target"
    public func endswith(target: String) -> Bool {
        return target == self.right(target.length)
    }

    // See how many times a char/string exists
    public func occurences(sub: String) -> Int {
        var result: Int = 0

    }
    
    // Get substring starting with position "start" and end with position "end"
    public func substr(var start start: Int, var end: Int) -> String {
        var flipped = false
        
        if start > end {
