fixed violations of UnnecessarySubstring rule
fixed violations of UnnecessarySemicolon rule
fixed violations of UnnecessaryPublicModifier rule