Improve internal representation of bejaviour string.