Added chomp_alt method to remove newline character rather than hardcoding delete() on each instance