Fixed an issue involving not closing a string