updated string comparison to add functionality

added getting rid of prefix and postfix