remove use of deprecated getProperty().toString()