Add new method path.

Method used to correct the path without slashes.