Rebuild detect Rules Letters or Numbers
Remove unused variable, spaces, new lines