def replaceString(newString):
    """For use with change_element, shortcut for replacing the .string on an element"""
    def retFn(element):
        element.string.replaceWith(newString)
    return retFn