Update basicTypes.py

Added Java-like methods on DOMString