Fixes behavior of str.split with maxsplit parameter, fixes str.rsplit