How can I add a space between the numbers/digits on my score? (Solved)

Due to the Font type and style I’m using in my game anything written on my GUI has to be spaced apart. (ie SOLVED has to be written as S O L V E D) this was fine until I noticed my score numbers were getting written as normal.

void Update ()
		// Set the displayed text to be the word "Score" followed by the score value.
		text.text = "S c o r e : " + score;

Is there anyway to separate the numbers on my score once it reached double figures.


I’d use LINQ.

using UnityEngine;
using System.Collections;
using System.Linq; // ADD THIS LINE

public class Whatever: MonoBehaviour {

	// Use this for initialization
	void Start () {

		int score = 4325;

		string scoreAsStringWithSpaces = score.ToString().Aggregate(string.Empty, (c, i) => c + i + ' ');

		Debug.Log (scoreAsStringWithSpaces); // Outputs 4 3 2 5