BUGFIX: Segfault if out-of-bounds string read occurs. Adds a bounds check on hw_revision