if key is an int, multiply by -1 instead of reverseString