Fix str to tuple converts.
Fix isValid func.
Fix config.