Remove member field that is only used locally.
Compare strings against the literal to avoid NullPointerExceptions.