String split and strip functions (similar to Python functions).