remove strip_end it was just a hack. glib's string.strip is better, even
if it does remove extra whitespace