* helm.el (helm--mapconcat-candidate): Renamed to `helm--mapconcat-pattern'.
(helm--mapconcat-pattern): Rework it.
* helm-buffers.el: use it.
* helm-files.el:   use it.