improve setter method: don't convert to long when passing string