Allow to remove empty path from start to end.