added setWord() in lang.cpp