getValue now takes a string instead of a token