java.lang.NullPointerException: Cannot invoke "String.replaceAll(String, String)" because "ret" is null