finish string hashing function
finish command parsing fn