Get rid of eol character from result output