Making linebreaks possible in labels
Fix crash when '|' is the last symbol in the string