Moving string-> conversion to rake task