fixes to remove spaces from local keys