You are given a single string consisting of several substrings; each separated by a `|` character. Unfortunately, some of these substrings contain unnecessary characters that need to be removed in order to form a well-structured output string.
For each substring, you need to extract the portion of the substring which is between the first and last `.`. The leading and trailing white spaces must be removed. The strings should then be joined together, using a space to separate each substring.