diff --git a/src/pystencils/types/types.py b/src/pystencils/types/types.py
index 7645a452ffaad83de802da90e10b93fa43e1d3dc..825ac1d5d35fde0f26c5a9ebadb55ec43004c9ae 100644
--- a/src/pystencils/types/types.py
+++ b/src/pystencils/types/types.py
@@ -35,7 +35,7 @@ class PsCustomType(PsType):
         return self._name
 
     def c_string(self) -> str:
-        return f"{self._const_string()} {self._name}"
+        return f"{self._const_string()}{self._name}"
 
     def __repr__(self) -> str:
         return f"CustomType( {self.name}, const={self.const} )"