re-used internal method to check if the path is absolute, just for readability.
renamed parse to substitute, since parse is too generic
renamed clean to substituteAll for the same reason
added matched key as argument to a callable value
updated docblocks