Added splice UI and trim whitespace