added word delimiter functionality