I think these lines could be simplified to `@token, @room_id = specification.split('@', 2)` to avoid having to deal with regular expressions.