Java a mis de l'espace en chaîne après n caractères

val stringWithSpaceAfterEvery4thChar = stringWith12Chars?.replace("....".toRegex(), "$0 ")
Victorious Vendace