How to update the new data/line on oled screen of my smartwatch?

In this project the date|time|phone|text info is sent from the phone. Now the problem is that it works fine but it doesn’t clear the line and write the new data and just overwrites it. See my code below and please help.
Moreover I don’t understand why the clearLine() function I made doesn’t work.

#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define OLED_RESET 4
Adafruit_SSD1306 display(OLED_RESET);
String PrevCall,PrevTime;
int sensorVal;
int ccount=0,mcount=0;
int displayCount;
int held =0;
int restart=0;
void setup(){
Serial.begin(9600);
display.clearDisplay();
display.begin(SSD1306_SWITCHCAPVCC, 0x3C); // initialize with the I2C addr 0x3C (for the 128x32)
display.clearDisplay();
display.setTextColor(WHITE);

display.setTextSize(1);
display.display();
//configure pin2 as an input and enable the internal pull-up resistor
pinMode(2, INPUT);

pinMode(13, OUTPUT);
pinMode(12, OUTPUT);

}
void loop() {

// display.clearDisplay();
// display.display();
//THE STRING SHOULD RESEMBLE THIS: date | time | phone | text \n
while(Serial.available() > 0){

//READ THE STRING TO THE FIRST “|” DIVIDER AND STORE AS A VARIABLE
String myDate = Serial.readStringUntil(’|’);
Serial.read();
//STORE THE NEXT SECTION OF STRING AS A VARIABLE
String myTime = Serial.readStringUntil(’|’);
Serial.read();
//STORE THE THIRD SECTION OF STRING AS A VARIABLE
String myPhone = Serial.readStringUntil(’|’);
Serial.read();
//STORE THE FINAL SECTION AS A VARIABLE
String myText = Serial.readStringUntil(’\n’);

//CHECK TO SEE WHAT IS STORED IN THE TIME VARIABLE
//AND DISPLAY IT TO THE SCREEN
if(PrevTime!=myTime){
clearLine(PrevTime,0,0);
delay(500);
display.setTextColor(WHITE);
display.print(myTime);
display.display();
PrevTime=myTime;

}else{
display.setCursor(0,0);
display.print( myTime);
display.display();

}

//CHECK TO SEE WHAT IS STORED IN THE DATE VARIABLE
//AND DISPLAY IT TO THE SCREEN
if(myDate.indexOf(‘date’) >= 0){
display.setCursor(70,0);
clearLine(myDate,70,0);
display.display();

}else{
display.setCursor(70,0);
display.print(myDate);
display.display();

}

//CHECK THE PHONE VARIABLE TO SEE IF A CALL IS
//BEING RECIEVED. IF SO, TURN ON THE BACKLIGHT
//AND VIBRATE THE MOTOR
if(myPhone.indexOf(‘phone’) >= 0){
display.setCursor(0,display.height()/2);
clearLine(PrevCall,0,display.height()/2);
digitalWrite(12, LOW);
display.display();

// digitalWrite(ledPin, LOW);
}else{

display.setCursor(0,display.height()/2);
display.print(“Call:”+myPhone);
//display.print(myPhone);
display.display();
PrevCall=myPhone;

//Turn display On
displayCount = 10;
//Motor Vibration Pattern
digitalWrite(12, HIGH);
delay(500);
digitalWrite(12, LOW);
delay(500);

}

//CHECK THE PHONE VARIABLE TO SEE IF A CALL IS
//BEING RECIEVED. IF SO, TURN ON THE BACKLIGHT
//AND VIBRATE THE MOTOR
if(myText.indexOf(‘text’) >= 0){
display.setCursor(10,0.8display.height());
clearLine(myText,10,0.8
display.height());
digitalWrite(12, LOW);
display.display();

}else{
display.setCursor(10,0.8*display.height());

display.print(“Text:”);

display.print(myText);
display.display();

//Turn display On
displayCount = 10;
//Motor Vibration Pattern
digitalWrite(12, HIGH);
delay(250);
digitalWrite(12, LOW);
delay(250);
digitalWrite(12, HIGH);
delay(250);
digitalWrite(12, LOW);
delay(250);
}
}

//DETECT WHEN THE BUTTON HAS BEEN PRESSED
//AND TURN ON THE BACKLIGHT
sensorVal = digitalRead(2);
if (sensorVal == LOW) {
held++;
} else {
held=0;
}
if(held > 10 && held < 100 && restart == 0){
restart++;
held=0;
}else if(held > 500 && restart > 0){
restart=0;
held=0;
//softReset();
displayCount = 0;
}

//BACKLIGHT LOOP
if(displayCount < 15 ){
displayCount += 1;
}
if(displayCount >= 15){
displayCount = 20;
}
delay(5000);
}
void clearLine(String x,int X,int Y){
display.setCursor(X,Y);
display.setTextColor(“BLACK”);
display.print(x);
display.display();

}

Can't you just print a bunch of spaces?

Please use code tags when posting code

Now the problem is that it works fine

Bummer. No, wait. Why is that a problem?