trim key space