# Pyth, 12 bytes jm+*\ xQdd.: Sadly the question allows us to assume unique characters, so I just lookup the first position of the substring, and pad with spaces.