Adds string to the history list.
NOTE
This function exists primarily for testing purposes.
Returns void