fix #18: add offset argument to toStr methods