Remove redundant imports
Simplify if, casts
Fix some string performance issues
Merge branch 'sorth-apply-idea-code-fixes'