Swift implementation of NSString category for executing commands in Terminal