String (String reformatNotification, String rearrangeNotification) { String firstNotificationLine = reformatNotification != null ? reformatNotification : rearrangeNotification; if (reformatNotification != null && rearrangeNotification != null) { firstNotificationLine += ", " + rearrangeNotification; } firstNotificationLine = StringUtil.capitalize(firstNotificationLine); return firstNotificationLine; }