Fix for bug where there are just extra lines of whitespace at the end of the strings.