Fixed memory overflow in stripComments()