Add debug around string malloc