Remove keyword variable from object, fix exception message and replace spaces with tabs