Replace empty spaces on getPackagePath