yaml helper - printing string in one line while reading