Made getCodeStamp() compatible with forward or backward slashes