Fix issues with capitalize views and Class in action, remove spaces from output