Obtaining offset given location string (via library call?)