Fixed incorrect usage of "native" method

Previous implementation would always return an empty String.