Changed the type of return value from NSURL to NSString.