Fix string building error