Java Function To Remove All Spaces In String