replaced glib function calls to g_strstrip() and g_strchomp()