Variables ranges from string.
Refactroring.