Remove padding for spaces

ngRepeat does not run a cycle for spaces until a character is typed in.
 Thus slice for next to last character to test for a space.