I would personally hardcode the length and use a comment for the magic number, but this works well too.