removes additional spaces from values, changes jasmine tests slightly