Added function build_string_table that generates a dictionary of string-label pairs.