Alright, I think I found the issue. Here is the modified version that should fix it:
fn common_char_functional(str1: &str, str2: &str) -> &str {
str1.chars()
.filter(|ch1| str2.contains(*ch1))
.collect::<String>()
.trim_start_matches('L')
.as_ref()
}