Some color changes and integration of Strip_trailing function