converting an integer to a string

What is wrong with this? I want the output to be..hello 0. hello 1, hello 2, etc. There is something wrong with my itoa implementation. Maybe a better way?

byte x = 0;

String text;

loop{

x = x + 1

text = "hello " + itoa(x);

serial.println(text);

delay(1000);

}

barryjo:
What is wrong with this?

You’re using String.
You’re not using code tags.
Your code doesn’t compile.

Serial.print knows how to convert integers to ASCII

Serial.print("hello ");
Serial.println(x);

Is there a way to delete a post? I would like to re-write the question.

What is the new question?

I did a repost.

The answers are still relevant and correct.