* Trim trailing slash (useful for file path) p_fpath = replace( val = p_fpath regex = '/$' with = '' ).