update direction string