What language do you use?
You need to insert padding to align your text.
Many languages have built-in features. For instance, C's printf() has the format specifiers. See the examples there or this short one below.
For left justification, I used a negative number (-10), then the text to be displayed, and then the value that belongs to the texts.
#include <stdio.h>
int main()
{
printf("%-10s : %s\n", "name", "John Doe");
printf("%-10s : %d\n", "age", 64);
return 0;
}