String (TextFieldWithBrowseButton withBrowseButton) { final String text = withBrowseButton.getText(); if (StringUtil.isEmptyOrSpaces(text)) return null; return FileUtil.toSystemIndependentName(text.trim()); }