Refactored lintVariable() and linePlaceHolder() functions