Refactor out parsing of sql string value

Refactoring parsing of sql string value to separate static method. 

Makes it possible to use from elsewhere (liquibase-hibernate in my case).

There should not be any functional changes.