reduce unnceesary and redundant branches, modifiers, and string methods