_bcs_skip_nonws
path[_bcs_skip_nonws(path)-path] = '\0';
mapname[_bcs_skip_nonws(mapname)-mapname] = '\0';