corrected boundaries in string output functions