Some fixes on string splitting.