 			switch self.currentState {
 			case .WaitingForPortSelectionState(let availablePorts):
 				if !setupAndOpenPortWithSelectionString(string, availablePorts: availablePorts) {
-					print("\nError: Invalid port selection.", appendNewline: false)
+					print("\nError: Invalid port selection.", terminator: "")
 					prompter.promptForSerialPort()
 					return
 				}
 			case .WaitingForBaudRateInputState:
 				if !setBaudRateOnPortWithString(string) {
-					print("\nError: Invalid baud rate. Baud rate should consist only of numeric digits.", appendNewline: false);
+					print("\nError: Invalid baud rate. Baud rate should consist only of numeric digits.", terminator: "")
 					prompter.promptForBaudRate();
 					return;
 				}

	
	func serialPort(serialPort: ORSSerialPort, didReceiveData data: NSData) {
		if let string = NSString(data: data, encoding: NSUTF8StringEncoding) {
			print("\nReceived: \"\(string)\" \(data)", appendNewline: false)
		}
		prompter.printPrompt()
	}

		selectionString = selectionString.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet())
		if let baudRate = Int(selectionString) {
			self.serialPort?.baudRate = baudRate
			print("Baud rate set to \(baudRate)", terminator: "")
			return true
		} else {
			return false
