Added parsing library strings to lists before trying to iterate over them.