Preliminary Changes
Fixed dangling pointer error
Fixed string sending error