Utility functions for path strings manipulation.