public static String readLine(Socket s) throws IOException {
		//Reads data into buffer until newline is found, ignoring special characters and using backspaces properly
		String buffer = "";
		InputStreamReader in = new InputStreamReader(s.getInputStream());
		char inChar;
		
		while (true) {
			inChar = (char)in.read();
			
			if(inChar == -1) {
				return null;
			}
			
			if(inChar == '\n') {
				break;
			}
			
			if(inChar == '\b') {
				//Remove last character (if applicable) from buffer
				if(buffer.length() >= 1) {
					buffer = buffer.substring(0, buffer.length() - 2);
				}
			}
			
			if(inChar >= 32 && inChar <= 126) {
				buffer += inChar;
			}
		}
		
		return buffer;
	}