Implement methods to get and set window title.