pub(crate) fn remove_trailing_white_spaces(text: &str) -> String
Removes trailing spaces from the specified snippet. We do not remove spaces inside strings or comments.