remainder is not always None. it can be an empty string as well.