stripping extension if present added