Improved functionality of domstring implementation.