Method that implements Python-style string formatting in NSString.