extract string to constants, and debug fund